package com.ce.webframework.sec.service;

import java.util.List;

import com.ce.webframework.sec.model.SecUserinfoDO;
import com.ce.webframework.sec.vo.SecMenuitemVO;
import com.ce.webframework.sec.vo.SecUserinfoVO;
import com.sitechasia.webx.core.service.IValueObjectBaseService;
import com.sitechasia.webx.core.support.Page;

public interface ISecUserinfoService extends IValueObjectBaseService<SecUserinfoVO> {

	/**
	 * 根据客用户名和密码得到客户信息
	 *
	 * @param username
	 * @param password
	 * @return
	 */
	public SecUserinfoVO getSecUser(String username, String password);

	/**
	 * 检查用户
	 *
	 * @param username
	 * @param password
	 * @return
	 */
	public boolean checkUser(String username, String password);

	/**
	 * 得到分页用户信息
	 *
	 * @param userCode
	 * @param userName
	 * @param email
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public Page getSecUsers(String userCode, String userName, String email, int pageNo, int pageSize,
			String sortStr);

	/**
	 * 用户增加
	 * @param SecUserinfoDO
	 */
	public void addSecUser(SecUserinfoVO userinfoVO);

	public SecUserinfoVO findById(Long id);

	public void updateSecUser(SecUserinfoVO userinfoVO);

	public Page getUsers(String userCode, String userName, String sex, int pageNo, int pageSize,
			String sortStr);

	public void deleteSecUser(String[] delList);

	public List<SecMenuitemVO> getMenuItemList(List<String> menuCodes, Long epId);
	
	public SecUserinfoDO getUser(Long userId);

	/**
	 * 取得登陆用户
	 * @param SecUserinfoVO
	 */
	public SecUserinfoVO getLoginUser(String loginName, String password);
}
